//
//  MTCerSummaryModel.swift
//  MT
//
//  Created by 陈悦 on 2020/5/30.
//  Copyright © 2020 张强. All rights reserved.
//

import ObjectMapper
import MTCategory

class MTCerSummaryResponseModel: Mappable {
    
    var code: Int?
    
    var result: MTCerSummarySubModel?
    
    var message: String?
    
    required init?(map: Map) {
        
    }
    
    open func mapping(map: Map) {
        code            <- map["code"]
        result          <- map["result"]
        message         <- map["message"]
    }
    
}

class MTCerSummarySubModel: Mappable {

    var companyCertification: MTCerSummaryInfoModel?
    ///-1表示未认证，0表示认证中，1表示已通过，2表示已拒绝
    var companyStatus: Int?
    
    var personCertification: MTCerSummaryInfoModel?
    ///-1表示未认证，0表示认证中，1表示已通过，2表示已拒绝
    var personStatus: Int?
    
    required init?(map: Map) {
        
    }
    
    open func mapping(map: Map) {
        companyCertification            <- map["companyCertification"]
        companyStatus          <- map["companyStatus"]
        personCertification         <- map["personCertification"]
        personStatus         <- map["personStatus"]
    }
    
}

class MTCerSummaryInfoModel: Mappable {
    
    var href: String?
    
    var mobile: String?
    
    var userName: String?
    
    var douyinHomePage: String?
    
    var kuaishouHomePage: String?
    
    var otherHomePage: String?
    
    var xiaohongshuHomePage: String?
    
    required init?(map: Map) {
        
    }
    
    open func mapping(map: Map) {
        href            <- map["href"]
        mobile          <- map["mobile"]
        userName         <- map["userName"]
        douyinHomePage         <- map["douyinHomePage"]
        kuaishouHomePage         <- map["kuaishouHomePage"]
        otherHomePage         <- map["otherHomePage"]
        xiaohongshuHomePage         <- map["xiaohongshuHomePage"]
    }
    
}
